projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbe79a1
)
ppc: Make ppc4xx ready for CONFIG_SYS_GENERIC_BOARD
author
Dirk Eibach
<
[email protected]
>
Fri, 25 Jul 2014 08:10:23 +0000
(10:10 +0200)
committer
Stefan Roese
<
[email protected]
>
Fri, 25 Jul 2014 08:55:49 +0000
(10:55 +0200)
The generic board infrastructure assumes that gd is set by
arch code.
Signed-off-by: Dirk Eibach <
[email protected]
>
Signed-off-by: Stefan Roese <
[email protected]
>
arch/powerpc/cpu/ppc4xx/cpu_init.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/ppc4xx/cpu_init.c
b/arch/powerpc/cpu/ppc4xx/cpu_init.c
index d465dcda8b123ae563fadafcccaf77059815f54c..0b27d2912d1ac44789e87b8bd96495840a08d18a 100644
(file)
--- a/
arch/powerpc/cpu/ppc4xx/cpu_init.c
+++ b/
arch/powerpc/cpu/ppc4xx/cpu_init.c
@@
-12,9
+12,7
@@
#include <asm/ppc4xx-gpio.h>
#include <asm/ppc4xx.h>
-#if defined(CONFIG_405GP) || defined(CONFIG_405EP)
DECLARE_GLOBAL_DATA_PTR;
-#endif
#ifndef CONFIG_SYS_PLL_RECONFIG
#define CONFIG_SYS_PLL_RECONFIG 0
@@
-451,6
+449,8
@@
cpu_init_f (void)
mtdcr(PLB4A1_ACR, (mfdcr(PLB4A1_ACR) & ~PLB4Ax_ACR_RDP_MASK) |
PLB4Ax_ACR_RDP_4DEEP);
#endif /* CONFIG_440SP/SPE || CONFIG_460EX/GT || CONFIG_405EX */
+
+ gd = (gd_t *)(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
}
/*